package com.akk.module.app.service;


import com.akk.module.app.entity.AppAgentGrade;
import com.akk.module.app.entity.AppAgentGradeExample;
import com.akk.module.app.mapper.AppAgentGradeMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class AppAgentGradeService {
    @Autowired
    AppAgentGradeMapper appAgentGradeMapper;
    @Autowired
    AppAgentGradeExample appAgentGradeExample;

    public void save(AppAgentGrade appAgentGrade) {

    }

    public AppAgentGrade findByAgentGradeId(String agentGradeId) {
        return appAgentGradeMapper.selectByPrimaryKey(agentGradeId);
    }

    public void update(AppAgentGrade level) {
        appAgentGradeMapper.updateByPrimaryKey(level);
    }

    public List<AppAgentGrade> findByParam(Map param) {
        appAgentGradeExample.clear();
        return appAgentGradeMapper.selectByExample(appAgentGradeExample);
    }
}
